*** REPLICATION FILE ***

*** "Electoral cycles of protests and statistical manipulation: 
*** evidence from the COVID-19 pandemic," Democratization
*** Hidekuni Washida
*** October 28, 2024

* Figure 1 (bottom graph)

gen Regime3_bmr = e_boix_regime + 1
recode Regime3_bmr 1=0 if v2x_regime==0 
label define regime_label 0 "Closed autocracy" 1 "Electoral autocracy" 2 "Democracy"
label values Regime3_bmr regime_labe

gen melim_covid = (merepfact + merepgov)/2
gen _melim_covid01 = 1 - melim_covid01

reg _melim_covid01 i.Regime3_bmr lngdppc2019, cluster(e_regionpol_6C)
margins, at(Regime3_bmr=(0 1 2))
marginsplot, horizontal recast(scatter)   title("Freedom of Covid reporting (PanDem)", size(Medium)) ytitle("") xtitle("") saving(reportcovid.gph, replace) xlabel(0 .25 .5 .75 1) aspect(.2) ysc(reverse)

* descriptive statistics
sum _melim_covid01 i.Regime3_bmr lngdppc2019 if e(sample)==1

